<template>
  <div class="demo-title">swiper/demo3</div>
  <div class="demo">
    <Swiper :auto-play="4000" :duration="100">
      <SwiperItem v-for="(item, i) in images" :key="`swiper-item${i}`">
        <img :src="item" />
      </SwiperItem>
    </Swiper>
  </div>
</template>

<script lang="ts" setup>
  import { reactive } from 'vue'
  import { Swiper, SwiperItem } from '@sscd-mobile/swiper'
  const images = reactive([
    'https://ssc-design-1311112663.cos.ap-guangzhou.myqcloud.com/components/h5/swiper/swiper-1.png',
    'https://ssc-design-1311112663.cos.ap-guangzhou.myqcloud.com/components/h5/swiper/swiper-2.png',
    'https://ssc-design-1311112663.cos.ap-guangzhou.myqcloud.com/components/h5/swiper/swiper-3.png',
    'https://ssc-design-1311112663.cos.ap-guangzhou.myqcloud.com/components/h5/swiper/swiper-4.png',
    'https://ssc-design-1311112663.cos.ap-guangzhou.myqcloud.com/components/h5/swiper/swiper-5.png'
  ])
</script>

<style lang="less" scoped>
  .demo {
    margin: 0 12px;
  }
</style>
